<script setup lang="ts">
import { RouterView } from 'vue-router'
import SideNav from './components/SideNav/index.vue'
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header>前端面试真题宝典管理后台</el-header>
      <el-container>
        <el-aside width="200px">
          <SideNav></SideNav>
        </el-aside>
        <el-main class="main">
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less">
.main {
  height: calc(100vh - 60px);
}
</style>
